<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/home/css/admin.css" />
		<script type="text/javascript" src="__STATIC__/home/js/jquery.min.js" ></script>
	</head>
    <body class="pd30">
    	<div class="center-nav f20">{$pageData.title}</div>
    	<div class="center-tab b-w">
			<table class="table-cen" cellpadding="0" cellspacing="0">
				<colgroup>
					<col style="width: 20%;" />
					<col style="width: 50%;" />
					<col style="width: 10%;" />
					<col style="width: 20%;" />
				</colgroup>
				<thead>
					<tr>
						<th><div>标题</div></th>
						<th><div>内容</div></th>
						<th><div>发件人</div></th>
						<th><div>收件时间</div></th>
					</tr>
				</thead>
				<tbody>
					
				</tbody>
			</table>
			<div class="paging"></div>
		</div>
<script type="text/javascript">
function datas(){

	$.ajax({
		'type':'post',
		'dataType':'json',
		'url':"{:url('user.api/mail_in')}",
		'success':function(data){
			var html = '';
			$.each(data.data,function(index,value){
				html +='<tr><td><div><a href="">'+value.title+'</a></div></td><td><div>'+value.content+'</div></td><td><div>'+value.mid+'</div></td><td><div>'+value.create_date+'</div></td></tr>';
			})
			$(".table-cen tbody").html(html);
		}
	});
}
datas();
</script>
</body>
</html>